<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
        <link rel="stylesheet" href="style.css" />
        <title>Print Sys Inf</title>
    </head>
    <body>
        <s:set name="l" value="lstProc"/>
        <s:if test="%{#session['connecte']==true}" >
            <s:include value="home.jsp"></s:include>

                <p>CPU usage: <s:property value="%{#session['cpu']}"/></p>
                <p>MEM usage: <s:property value="%{#session['mem']}"/></p>
                <table>
                    <th>PID</th><th>Name</th><th>CPU</th><th>MEM</th>
                <s:iterator value="l">
                    <s:iterator>
                    <tr>
                        <td class="tdlarg-eq"><s:property value="pid"/></td>
                        <td class="tdlarg-eq"><s:property value="nameProcess"/></td>
                        <td class="tdlarg-eq"><s:property value="cpu"/></td>
                        <td class="tdlarg-eq"><s:property value="mem"/></td>
                    <tr/>
                    </s:iterator>
                </s:iterator> 
                </table>
        </s:if>   
    </body>
</html>
